import os
import shutil



for frequency in ["1d", "3h", "1h"]:
    for begin_date in ["20170101", "20200101", "20230101"]:
        os.makedirs(f"{frequency}/{begin_date}/trade_log")
        os.makedirs(f"{frequency}/{begin_date}/nav")
        os.makedirs(f"{frequency}/{begin_date}/png")
        os.makedirs(f"{frequency}/{begin_date}/result")


for frequency in ["1d", "3h", "1h"]:
    for begin_date in ["20170101", "20200101", "20230101"]:

        shutil.copy(f"D:/python_workspace/requirements/boll/part13/{frequency}/{begin_date}/result/backtest_performance.csv",
                    f"D:/python_workspace/requirements/boll/part13_result/{frequency}/{begin_date}/result/backtest_performance.csv")

for frequency in ["1d", "3h", "1h"]:

    shutil.copy(f"D:/python_workspace/requirements/boll/part13/{frequency}/backtest_performance_by_year.csv",
                f"D:/python_workspace/requirements/boll/part13_result/{frequency}/backtest_performance_by_year.csv")


for frequency in ["1d", "3h", "1h"]:
    for begin_date in ["20170101", "20200101", "20230101"]:

        shutil.copy(f"D:/python_workspace/requirements/boll/part13/{frequency}/{begin_date}/{frequency}_{begin_date}.html",
                    f"D:/python_workspace/requirements/boll/part13_result/{frequency}/{begin_date}/{frequency}_{begin_date}.html")


